#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
int a[100];
int i,j,temp;
cout<<"how many numbers\n";
cin>>n;
cout<<"Enter the numbers\n";
for (i=1;i<n;i++)
{
cin>>a[i];
}

for (i=1;i<=(n-1);i++)
{
 for(j=1;j<n-1;j+++)
 {
 if (a[j]<a[j+1])
 {
  temp=a[j];
  a[j]=a[j+1];
  a[j+1]=temp;
 }
}

}

cout<<"Descending order is:\n";
for(i=1;i<=n;i++)
{
cout<<a[i]<<endl;

}
getch();
}
/*
OUTPUT
How many numbers
10
enter the numbers
1
4
3
5
4
6
8
9
1
2
desending order 
9
8
6
5
4
4
